Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add gnmirpc to oc paths #3463

Merged
merged 3 commits into from
Oct 2, 2024
Merged

add gnmirpc to oc paths #3463

merged 3 commits into from
Oct 2, 2024

Conversation

ElodinLaarz
Copy link
Contributor

@ElodinLaarz ElodinLaarz commented Sep 26, 2024

The intent is to be able to allow both requirements to be made clearer by attaching the required RPC level of support (get, set, subscribe), as well as more detailed information about the current level of support.
Just because a path is supported under gnmi.Get doesn't mean it's supported ON_CHANGE in a gnmi.Subscribe!

The messages can be used to either list requirements or, if describing a particular target, it can be used to describe the level of support a target provides.

For read paths, we allow specification of desired (or implemented) support level: streaming, subscribe once, or polling.
Additionally, for paths requiring streaming support, we add specifications for the subscription type: target defined, on change, or sampled.
Finally, we add a sample_interval_nanoseconds, which can be used as a 'maximum desired cadence', if specified as a requirement or the 'minimum recommended cadence' if describing a target's capabilities.

For a target, a cadence of 0 (when the SubscriptionMode includes ON_CHANGE as supported) describes ON_CHANGE as the recommended frequency of subscription.

@ElodinLaarz ElodinLaarz requested a review from a team as a code owner September 26, 2024 21:19
@OpenConfigBot
Copy link

OpenConfigBot commented Sep 26, 2024

Pull Request Functional Test Report for #3463 / 00a9419

No tests identified for validation.

Help

@coveralls
Copy link

coveralls commented Sep 26, 2024

Pull Request Test Coverage Report for Build 11133359002

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 55.268%

Totals Coverage Status
Change from base Build 11130047378: 0.0%
Covered Lines: 1983
Relevant Lines: 3588

💛 - Coveralls

@dplore dplore self-assigned this Sep 26, 2024
Change names of the enums to be a bit clearer and change default value to hold no information.
proto/ocpaths.proto Show resolved Hide resolved
@dplore dplore merged commit 25f6401 into openconfig:main Oct 2, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants